<?php
namespace Swiftx\Bundle\WeChat\Interfaces\Common;
use Swiftx\Component\Orm\Entity;
use Swiftx\Interfaces\Orm\Manager;

/**
 * 实体模型基类
 */
abstract class BaseModel extends Entity {

    /**
     * 实体管理器
     * @var Manager
     */
    protected $entityManager;

    /**
     * 注入实体管理器
     * @param Manager $manager
     * @auto-injection
     */
    public function setEntityManager(Manager $manager){
        $this->entityManager = $manager;
    }

}